package com.sjd.farm.domain.dto.order;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.sjd.common.annotation.Excel;
import lombok.Data;

import java.math.BigDecimal;
import java.time.LocalDateTime;

/**
 * WebFarmOrderQry
 *
 * @author seer
 * @date 2022/2/4 19:42
 */
@Data
public class WebFarmOrderQryResponseDTO {

    /**
     * 主键
     */
    @Excel(name = "主键")
    private Long id;

    /**
     * 订单号
     */
    @Excel(name = "订单号")
    private String orderNo;

    /**
     * 订单状态
     */
    @Excel(name = "订单状态")
    private Integer orderStatus;

    /**
     * 订单状态
     */
    @Excel(name = "订单状态")
    private String orderStatusLabel;

    /**
     * 会员手机号
     */
    @Excel(name = "会员手机号")
    private String memberMobile;

    /**
     * 订单金额
     */
    @Excel(name = "订单金额")
    private BigDecimal orderAmount;

    /**
     * 下单时间
     */
    @Excel(name = "下单时间")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private LocalDateTime orderTime;

    /**
     * 实付金额
     */
    @Excel(name = "实付金额")
    private BigDecimal paymentAmount;

    /**
     * 支付时间
     */
    @Excel(name = "支付时间")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private LocalDateTime paymentTime;

    /**
     * 收货时间
     */
    @Excel(name = "收货时间")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private LocalDateTime receiptTime;

    /**
     * 商品ID
     */
    @Excel(name = "商品ID")
    private Long goodsId;

    /**
     * 商品数量
     */
    @Excel(name = "商品数量")
    private BigDecimal goodsQuantity;

    /**
     * 商品名称
     */
    @Excel(name = "商品名称")
    private String goodsName;

    /**
     * 商品图片
     */
    @Excel(name = "商品图片")
    private String goodsPicture;

    /**
     * 商品价格
     */
    @Excel(name = "商品价格")
    private BigDecimal goodsPrice;
}
